export class MOperatorInstance {
    public static readonly Instance: MOperatorInstance = new MOperatorInstance();
    private constructor() {}
    initMOperator(): void {
        this.dollarSymbol();
    }


    /**
     *一、美元符 $
     * 1.提取变量值
     * 2.
     */
    dollarSymbol(): void {
        console.log("美元符测试:");
        //1.`${变量}` 提取变量值
        let num1: number = 1;
        console.log(`  变量1 ${num1}`); //变量1 1

        //2.
        let str1: string = "str1";
        console.log(`  ${num1}${str1}`);         //1str1
    }


}

export const MOperator = MOperatorInstance.Instance;